<?php

namespace System\Data;

/**
 * @author elton.schivei
 */
interface IDataResult
{

    const FETCH_OBJECT = 0;
    const FETCH_ARRAY = 1;
    const FETCH_ROWS = 0;
    const FETCH_COLUMNS = 1;

    /**
     * @return array
     */
    function Fetch($type = IDataResult::FETCH_OBJECT, $orientation = IDataResult::FETCH_ROWS, $object = null, Array $params = array());

    /**
     * @return integer
     */
    function NumRows();

    /**
     * @return object
     */
    function FetchUnique($index = 0, $type = IDataResult::FETCH_OBJECT, $object = null, Array $params = array());
}
